package com.doone.telmarket.domain;


/**
 * 
 * @author 吴同庆
 * @date 2009-9-18
 * @description 站点路径
 * @package     com.doone.telmarket.domain
 */
public class SitePath {
	
	private final static String PATH_DELIMITER = "//";
	
	private SiteDirectory[] directories;
	
	public SitePath(SiteDirectory[] directories){
		this.directories = directories;
	}
	
	public String getPath(){
		StringBuffer buffer = new StringBuffer();
		buffer.append(PATH_DELIMITER);
		for(int i = 0; i < directories.length;i++){
			buffer.append(directories[i].getName());
			buffer.append(PATH_DELIMITER);
		}
		return buffer.toString();
	}

}
